Repository navigation
Conversation
…S overlay, and appearance controls
Author
|
Updated: skip adaptive display-link motion recording during host live window resize so resizing stays smooth. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds per-app power/memory efficiency controls, iOS-semantic adaptive frame rate scheduling (
1–60 FPS), an optional lightweight FPS pill overlay, and per-app Light/Dark appearance overrides.Summary
PlayEfficiencyHooks.{h,m}):CADisplayLink/MTKViewrates (10–60 FPS) or enables Adaptive (1–60 FPS) scheduling: raises immediately to 60 FPS on user input /CAAnimation/ visible scrolling / CoreAnimation layer motion commits, maintains a 30 FPS floor during activeAVPlayermedia playback or playback-style animations (such as danmaku), and steps down to 10 FPS then 1 FPS (or occluded deep idle) when stationary.UIBlurEffect/UIGlassEffectmaterials to context-aware opaque surfaces (PlayLoader.m).NSCache/NSURLCache, limitsCAMetalLayer/MTKViewdrawables and EDR backing stores, reclaims memory on pressure or occlusion, and limits idle/pausedAVPlayerItembuffering & resolution.PlayInfo.swift): selectable Follow System (0), Spoof High Performance (1), or Low Power Mode (2), preserving backwards compatibility with legacyspoofPowerState.Plugin.swift,AKPlugin.swift,PlayLoader.m): exposes occlusion/visibility state for efficiency throttling and adds per-appappearanceStyle(Follow System / Light / Dark) with re-entrancy guards on_updateFromSystemAppearance:.Verification
PlayTools(-sdk iphoneos),AKInterface(-sdk macosx), and verified Mac Catalyst Swift +PlayEfficiencyHooks.mcompilation (arm64-apple-ios15.0-macabi).swiftlint --strictpassed with 0 violations.